package com.atkins.spring.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public interface IGoonData {

	public class GoonList{
		
		List<GoonRef> list = new ArrayList<GoonRef>();

		public List<GoonRef> getList() {
			return list;
		}

		public void setList(List<GoonRef> list) {
			this.list = list;
		}
		
	}
	
	public class GoonRef{

		String name;
		int id;
		
		public GoonRef(int id, String name){
			this.id = id;
			this.name = name;
		}
		
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
	}
	
	public class GoonDetails{
		
		String name;
		int id;
		String description;
		Date dob;
		
		public String getDescription() {
			return description;
		}
		public void setDescription(String description) {
			this.description = description;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public Date getDob() {
			return dob;
		}
		public void setDob(Date dob) {
			this.dob = dob;
		}
	}
	
	public GoonList getGoonList();
	public GoonDetails getGoonDetails(int id);
	public boolean saveGoonDetails(GoonDetails details);
	
}
